<?php
return array(
	//MySQL 配置项
	'DB_TYPE'      =>  'mysql',     // 数据库类型
	'DB_HOST'      =>  'demo.lovep2p.com',     // 服务器地址
	'DB_NAME'      =>  'share',     // 数据库名
	'DB_USER'      =>  'root',     // 用户名
	'DB_PWD'       =>  'lovep2p',     // 密码
	'DB_PORT'      =>  '3306',     // 端口
	'DB_PREFIX'    =>  'c_',     // 数据库表前缀
	'DB_CHARSET'   =>  'utf8', // 数据库的编码 默认为utf8
    'DB_PARAMS'    =>   array(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true),

	/*
	//RedisDB 配置项
	'REDIS_HOST'	=>	'123.56.78.190',
	'REDIS_PORT'	=>	'6379',
	'REDIS_AUTH'	=>	'',

	//Redis Session 配置项
	'SESSION_AUTO_START'	=>  true,	// 是否自动开启Session
	'SESSION_TYPE'			=>  'Redis',	//session类型
	'SESSION_PERSISTENT'    =>  1,		//是否长连接(对于php来说0和1都一样)
	'SESSION_CACHE_TIME'	=>  1,		//连接超时时间(秒)
	'SESSION_EXPIRE'		=>  0,		//session有效期(单位:秒) 0表示永久缓存
	'SESSION_PREFIX'		=>  '',		//session前缀
	'SESSION_REDIS_HOST'	=>  '123.56.78.190', //分布式Redis,默认第一个为主服务器
	'SESSION_REDIS_PORT'	=>  '6379',	       //端口,如果相同只填一个,用英文逗号分隔
	'SESSION_REDIS_AUTH'    =>  '',    //Redis auth认证(密钥中不能有逗号),如果相同只填一个,用英文逗号分隔

	//Redis Cache 配置项
	'DATA_CACHE_TIME'       =>  3600,           //长连接时间,REDIS_PERSISTENT为1时有效
	'DATA_CACHE_PREFIX'     =>  '',            //缓存前缀
	'DATA_CACHE_TYPE'       =>  'Redis',       //数据缓存类型
	'DATA_EXPIRE'           =>  0,	           //数据缓存有效期(单位:秒) 0表示永久缓存
	'DATA_PERSISTENT'      	=>  1,		       //是否长连接
	'DATA_REDIS_HOST'		=>  '123.56.78.190', //分布式Redis,默认第一个为主服务器
	'DATA_REDIS_PORT'		=>  '6379',	       //端口,如果相同只填一个,用英文逗号分隔
	'DATA_REDIS_AUTH'       =>  '',     //Redis auth认证(密钥中不能有逗号),如果相同只填一个,用英文逗号分隔
	*/
	'DEFAULT_MODULE' => 'Wechat', // 默认模块
	'URL_CASE_INSENSITIVE' =>true,	//不区分大小写

	'DB_SQL_BUILD_CACHE' => true,
	//'DB_SQL_BUILD_QUEUE' => '',
	'DB_SQL_BUILD_LENGTH' => 20000, // SQL缓存的队列长度
	
	//'DEFAULT_THEME' => 'luoe',
	'VIEW_PATH'=>'./Template/',
	'URL_MODEL' => '2',
	 'URL_HTML_SUFFIX' =>  '',  // URL伪静态后缀设置
	//'URL_PATHINFO_DEPR'=>'-',
	
	'TMPL_PARSE_STRING'  =>array(
		//'__PUBLIC__' => '/Common', // 更改默认的/Public 替换规则
		'__UPLOAD__' => '/Uploads', // 增加新的上传路径替换规则
		'__JS__'     => '/Template/js', // 增加新的JS类库路径替换规则
		'__IMG__'	=> '/Template/images',
		'__CSS__'	=> '/Template/css',
		'__Temp__' => '/Template',
	),
	
	'examine' => 1,	//是否需要审核 0为需要 1为不需要

	//图片的最大宽度高度
	'ImgWidth' => 1024,
	'ImgHeight' => 1024,

	'mms' => 1, 	//0为微信，1为短信验证码

    'mmskey' => '12c6a566bc4665282f5dccecafe8faff',

    //阿里云OSS配置
    'OSS_ACCESS_KEY_ID' => 'fp87gtBaKTD9zHmE',
    'OSS_ACCESS_KEY_SECRET' => 'me2Ur0Jxuh7alnGWhbYylkGf1nQhvl',
    'OSS_ENDPOINT' => 'oss-cn-qingdao.aliyuncs.com',
    'OSS_ENDPOINT_CNAME' => 'resource.91memo.cn',
    'OSS_BUCKET_NAME' => 'qkt',

    //阿里云OSS图片处理
    'OSS_IMAGE_ENDPOINT' => 'image.91memo.cn',

    'FRONTEND_HOST' => 'qkt.91memo.cn',
    'ROBOT_HOST' => 'ddr.52star.net',
    'BACKEND_HOST' => 'ht.52star.net',

	/************************************************去拼团***********************************************/

	//微信配置
//	'appid'=>'wxe6ae8d9dfcc5b46e',										//填写高级调用功能的appid
//	'appsecret' => '7728729b4840d90261f4925a69898d35',					//AppSecret(应用密钥)
//	'token'=>'hospital',												        //填写应用接口的Token
//	'encodingaeskey'=>'W3FE0nQ9CHn6N76eMKCvoZHaAT6kTfCUxEs8rpc2o2p',	//填写加密用的EncodingAESKey
//    'account'=>'ebaoyouhu@qq.com',										//公众号用户名
//    'password'=>'ebaoyouhu@2015',
//    'mch_id' => '1291511401',
//    'mch_key' => 'ebabyqwerasdfzxcvpoiulkjhmnebaby',

    //微信配置
    'appid'=>'wx2ce89661544e9ed7',										//填写高级调用功能的appid
    'appsecret' => 'd75ddca0805021356a7cbf942c069b9b',					//AppSecret(应用密钥)
    'token'=>'qkt',												//填写应用接口的Token
    'encodingaeskey'=>'3AxppeBA0hoYjkFBE6Mya8U3ep8pE2Tiue6uKjMJXJ2',	//填写加密用的EncodingAESKey
    'account'=>'qukaituan@163.com',										//公众号用户名
    'password'=>'Qukaituan1234',
    'mch_id' => '1414194702',
    'mch_key' => 'qukaituanqukaituanqukaituan88888',

    'oauthServerUrl' => 'http://qkt.91memo.cn/Wechat/Api/auth3/',

    //OSS配置
    'BUCKET_NAME' => 'qpt',

    //默认分页大小
    'DEFAULT_PAGE_SIZE' => 20,

    //默认费率
    'DEFAULT_REWARD_FEE' => 0.95,

    //默认域名
    'ROOT_URL' => 'http://qkt.91memo.cn',

    //默认是否枚举
    'DEFAULT_YN' =>array('YES' => 1, 'NO' => -1,
		'YES_STRING' => '是', 'NO_STRING' => '否'),

    //公会成员状态
    'SOCIATY_MEMBER_STATUS' =>array(
        'WAITING' => -1,
        'ACCESS' => 1,
        'REJECT' => 2,
        'QUIT' => -2,

        'WAITING_STRING' => '待审核',
        'ACCESS_STRING' => '已通过',
        'REJECT_STRING' => '被拒绝',
        'QUIT_STRING' => '已退出',
    ),

    //提现状态
    'WITHDRAW_STATUS' =>array(
        'WAITING' => -1,
        'END' => 1,

        'WAITING_STRING' => '待处理',
        'END_STRING' => '已完成',
    ),

    //提现类型
    'WITHDRAW_TYPE' =>array(
        'WECHAT' => 1,
        'ALIPAY' => 2,

        'WECHAT_STRING' => '微信',
        'ALIPAY_STRING' => '支付宝',
    ),

    //流水类型
    'ACCOUNT_DETAIL_TYPE' =>array(
        'WITHDRAW' => 1,
        'ORDER' => 2,
        'WIN' => 3,
        'REFUND' => 4,

        'WITHDRAW_STRING' => '提现',
        'ORDER_STRING' => '订单购买',
        'WIN_STRING' => '团胜开奖',
        'REFUND_STRING' => '退款'
    ),

    //banner类型
    'BANNER_TYPE' =>array(
        'HOME' => 1,
        'PRODUCT' => 2,
        'RANK' => 3,

        'HOME_STRING' => '首页',
        'PRODUCT_STRING' => '产品',
        'RANK_STRING' => '排行榜',
    ),

    //订单状态
    'ORDER_STATUS' =>array(
        'WAITING_PAY' => 1,
        'WAITING_OPEN' => 2,
        'WAITING_CHOOSE' => 3,
        'FAILURE' => 4,
        'WIN' => 5,
        'SYSTEM_ABANDON' => 6,

        'WAITING_PAY_STRING' => '待支付',
        'WAITING_OPEN_STRING' => '待开奖',
        'WAITING_CHOOSE_STRING' => '等待选择分奖形式',
        'FAILURE_STRING' => '团灭',
        'WIN_STRING' => '团胜',
        'SYSTEM_ABANDON_STRING' => '超时作废',
    ),

    //派奖形式
    'PIE_TYPE' => array(
        'CASH' => 1,
        'GIFT' => 2,

        'CASH_STRING' => '分钱',
        'GIFT_STRING' => '领奖品',
    ),

    //商品每轮状态
    'ROUND_STATUS' => array(
        'WAITING' => 1,
        'END' => 2,

        'WAITING_STRING' => '正在进行中',
        'END_STRING' => '已结束',
    ),

    //团状态
    'GROUP_STATUS' => array(
        'WAITING_PAY' => -1,
        'WAITING_JOIN' => 1,
        'FAILURE' => 2,
        'WIN' => 3,
        'SYSTEM_ABANDON' => 4,

        'WAITING_PAY_STRING' => '等待支付',
        'WAITING_JOIN_STRING' => '正在报名',
        'FAILURE_STRING' => '团灭',
        'WIN_STRING' => '团胜',
        'SYSTEM_ABANDON_STRING' => '超时作废',
    ),

    //支付类型
    'PAY_SOURCE' => array(
        'WECHAT' => 1,
        'BALANCE' => 2,

        'WECHAT_STRING' => '微信',
        'BALANCE_STRING' => '余额',
    ),

    //SWOOLE异步任务类型
    'SWOOLE_TASK_TYPE' => array(
        'GENERATE_ORDER' => 1,
        'DRAW_PRIZE' => 2,
        'PUSH_NOTIFICATION' => 3,
        'PUSH_WIN_GROUP_WECHAT' => 4,

        'GENERATE_ORDER_STRING' => '生成订单',
        'DRAW_PRIZE_STRING' => '开奖',
        'PUSH_NOTIFICATION_STRING' => '推送',
        'PUSH_WIN_GROUP_WECHAT_STRING' => '微信推送团胜'
    ),

    //抽奖方式
    'DRAW_TYPE' => array(
        'RANDOM' => 1,
        'FIXED' => 2,

        'RANDOM_STRING' => '随机',
        'FIXED_STRING' => '固定',
    ),

    //支付页面类型
    'PAY_PAGE_TYPE' => array(
        'ORDER' => 1,
        'RECEIVE' => 2,

        'ORDER_STRING' => '订单',
        'RECEIVE_STRING' => '确认奖品'
    ),

    //浏览类型
    'BROWSE_TYPE' => array(
        'PRODUCT' => 1,
        'SHARE' => 2,
        'JOIN' => 3,

        'PRODUCT_STRING' => '开团',
        'SHARE_STRING' => '参团',
        'JOIN_STRING' => '继续购买',
    ),

    //GIFT-ORDER
    'GIFT_ORDER_STATUS' =>array(
        'END_PAY' => 1,
        'WAITING' => -1,
        'END' => 2,

        'END_PAY_STRING' => '待发货',
        'WAITING_STRING' => '未付款',
        'END_STRING' => '已完成'
    ),

);


